import request from '@/utils/request'
import { unionApiUrl } from '@/api/config'

/**
 * 获取竣工项目归档列表
 */
export function getArchiveDocList(data) {
    return request({
        url: unionApiUrl + '/archiveCompletionInfo/getPageArchiveCompletion',
        method: 'post',
        data
    })
}

/**
 * 批量添加竣工归档附件
 */
export function batchArchiveDoc(data) {
    return request({
        url: unionApiUrl + '/archiveCompletionFile/batchInsertSelective',
        method: 'post',
        data
    })
}

/**
 * 获取批量归档附件
 */
export function getBatchArchiveDoc(data) {
    return request({
        url: unionApiUrl + '/archiveCompletionFile/queryArchiveCompletionFileList',
        method: 'post',
        data
    })
}

/**
 * 竣工项目归档台账
 */
export function getArchiveStandingBook(data) {
    return request({
        url: unionApiUrl + '/archiveCompletionLedger/getPageArchiveCompletionLedger',
        method: 'post',
        data
    })
}

/**
 * 通过归档ID查询项目信息
 */
export function getProjectByArchive(params) {
    return request({
        url: unionApiUrl + '/archiveCompletionInfo/getArchiveCompletionInfoById',
        method: 'get',
        params
    })
}